package com.itheima.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerConfirmListener {
    @RabbitListener(queues = "direct.queue1")
    public void listenerDirectQueue1(String message){
        System.out.println("消费者确认机制："+message);
        throw new RuntimeException("消费者确认机制测试");
    }
}
